Optimal. Leaf size=25 \[ \frac {a x^2}{2}-\frac {b \cos \left (c+d x^2\right )}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {14, 3460, 2718}
\begin {gather*} \frac {a x^2}{2}-\frac {b \cos \left (c+d x^2\right )}{2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2718
Rule 3460
Rubi steps
\begin {align*} \int x \left (a+b \sin \left (c+d x^2\right )\right ) \, dx &=\int \left (a x+b x \sin \left (c+d x^2\right )\right ) \, dx\\ &=\frac {a x^2}{2}+b \int x \sin \left (c+d x^2\right ) \, dx\\ &=\frac {a x^2}{2}+\frac {1}{2} b \text {Subst}\left (\int \sin (c+d x) \, dx,x,x^2\right )\\ &=\frac {a x^2}{2}-\frac {b \cos \left (c+d x^2\right )}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 41, normalized size = 1.64 \begin {gather*} \frac {a x^2}{2}-\frac {b \cos (c) \cos \left (d x^2\right )}{2 d}+\frac {b \sin (c) \sin \left (d x^2\right )}{2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 27, normalized size = 1.08
method | result | size |
risch | \(\frac {a \,x^{2}}{2}-\frac {b \cos \left (d \,x^{2}+c \right )}{2 d}\) | \(22\) |
derivativedivides | \(\frac {\left (d \,x^{2}+c \right ) a -b \cos \left (d \,x^{2}+c \right )}{2 d}\) | \(27\) |
default | \(\frac {\left (d \,x^{2}+c \right ) a -b \cos \left (d \,x^{2}+c \right )}{2 d}\) | \(27\) |
norman | \(\frac {\frac {b \left (\tan ^{2}\left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )\right )}{d}+\frac {a \,x^{2}}{2}+\frac {a \,x^{2} \left (\tan ^{2}\left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )\right )}{2}}{1+\tan ^{2}\left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )}\) | \(63\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 21, normalized size = 0.84 \begin {gather*} \frac {1}{2} \, a x^{2} - \frac {b \cos \left (d x^{2} + c\right )}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 23, normalized size = 0.92 \begin {gather*} \frac {a d x^{2} - b \cos \left (d x^{2} + c\right )}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.09, size = 31, normalized size = 1.24 \begin {gather*} \begin {cases} \frac {a x^{2}}{2} - \frac {b \cos {\left (c + d x^{2} \right )}}{2 d} & \text {for}\: d \neq 0 \\\frac {x^{2} \left (a + b \sin {\left (c \right )}\right )}{2} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 6.17, size = 26, normalized size = 1.04 \begin {gather*} \frac {{\left (d x^{2} + c\right )} a - b \cos \left (d x^{2} + c\right )}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.61, size = 21, normalized size = 0.84 \begin {gather*} \frac {a\,x^2}{2}-\frac {b\,\cos \left (d\,x^2+c\right )}{2\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________